/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const chartsRouter = {
  path: '/charts',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Charts',
  meta: {
    title: '教学管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'keyboard',
      component: () => import('@/views/course/index'),
      name: 'KeyboardChart',
      meta: { title: '课程管理', noCache: true }
    },
    {
      path: 'line',
      component: () => import('@/views/charts/line/manage.vue'),
      name: 'manages',
      meta: { title: '班级管理', noCache: true }
    },
    {
      path: 'detail',
      component: () => import('@/views/charts/line/manages/detail'),
      name: 'details',
      meta: { title: '班级详情', noCache: true },
      hidden: true
    },
    {
      path: 'checkWork',
      component: () => import('@/views/charts/line/manages/checkWork'),
      name: 'checkWorks',
      meta: { title: '考勤管理', noCache: true },
      hidden: true
    },
    {
      path: 'mix-chart',
      component: () => import('@/views/charts/mix-chart/index'),
      name: 'MixChart',
      meta: { title: '测试管理', noCache: true }
    },
    {
      path: 'details',
      component: () => import('@/views/charts/mix-chart/details'),
      name: 'details',
      meta: { title: '测试详情', noCache: true },
      hidden: true
    },
    {
      path: 'things',
      component: () => import('@/views/charts/things/index'),
      name: 'things',
      meta: { title: '时间事件管理', noCache: true },
      redirect: '/charts/things',
      children: [
        {
          path: 'matter',
          component: () => import('@/views/charts/things/matter/index'),
          name: 'matter',
          meta: { title: '时间事件管理页面', noCache: true }
        }
      ]
    }
  ]
}

export default chartsRouter
